package indi.jp.project.demo.dao;

import indi.jp.project.process.entity.FlowTask;
import indi.jp.project.process.entity.FlowTaskHistory;
import org.apache.ibatis.annotations.Mapper;

import java.sql.SQLException;
import java.util.List;
import java.util.Map;

/**
 * DAO
 *
 * @author jiangping
 * @date 2022/5/9
 */
@Mapper
public interface FlowDisposeDAO {

    List<Map<String, String>> queryIds(String tableName) throws SQLException;

    List<Map<String, String>> queryFlowData(String tableName) throws SQLException;

    List<Map<String, String>> queryMaterialFlowData() throws SQLException;

    void insertBatchFlowTask(List<FlowTask> list) throws SQLException;

    List<Map<String, String>> queryOldHistory() throws SQLException;

    void insertBatchFlowHistory(List<FlowTaskHistory> list) throws SQLException;
}
